﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WLMCoreLibrary;
using SAW_Core;

namespace SAW_Mobile.XML
{
    public partial class listaProductos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            dbConnector ConexionDB = new dbConnector();
            ProductoCollection listaProductos= new ProductoCollection(ref ConexionDB);
            ConexionDB.CloseConnection();
            Response.ContentType = "text/xml";
            Response.Write(WLMFunctions.SerializeObject(listaProductos,true));
        }
    }
}